#include "stdafx.h"
#include "CppUnitTest.h"
#include "FizzBuzz.h"
#include "FizzBuzz.cpp"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace FizzBuzzCUnitTests
{		
	TEST_CLASS(FizzBuzzTests)
	{
	public:
		
		TEST_METHOD(TestFizzBuzz)
		{
			// arrange
			int input[8] = { 1, 2, 3, 4, 5, 6, 10, 15 };
			string output[8] = { "1", "2", "fizz", "4", "buzz", "fizz", "buzz", "fizzbuzz" };

			// act
			FizzBuzz test;
			for (int i = 0; i < 8; i++)
			{
				// assert
				Assert::AreEqual(output[i], test.CallFizzBuzz(input[i]));
			}
		}
	};
}